#include <stdio.h>
#include <stdlib.h>
const double eps=1e-10;
double f(double x)
{
  	return x*x*x;
}
double g(double x)
{
  	if(x==0)
  		return 0;
  	double left=0,right=1000,mid;
  	while(right-left>eps){
    	mid=(left+right)/2;
    if(f(mid)>x)
      	right=mid;
    else 
      	left=mid;
  }
  return mid;
}
int main(int argc, char *argv[])
{
 	int i,n,j[100000];
  	scanf("%d",&n);
  	for(i=0;i<n;i++){
    	scanf("%d",&j[i]);
  	}
  	for(i=0;i<n;i++){
    	printf("%.3f\n",g(j[i]));
  	}
  	return 0;
}
